import request from '@/util/request'
export default {
    findAll(){
        return request({
            url: '/skill/list',
            method: 'get',
        })
    },
    // 1. 查询所有产品
    findUsers() {
        return request({
            url: '/skill/list',
            method: 'get',
        })
    },
    // 2. 分页查询产品
    findByPage(page, pageSize) {
        return request({
            url: `/skill/findByPage/${page}/${pageSize}`,
            method: 'get',
        })
    },
    //3. 条件查询分页
    search(page,pageSize,data){
        return request({
            url: `/skill/search/${page}/${pageSize}`,
            method: 'post',
            data
        })
    },
    save(data){
        return request({
            url: `/skill/save`,
            method: 'post',
            data
        })
    },
    update(data) {
        return request({
            url: `/skill/update`,
            method: 'put',
            data
        })
    },
    delete(ids) {
        return request({
            url: `/skill/delete/${ids}`,
            method: 'delete'
        })
    }
}